} OtAdminDeploy;
static gboolean opt_no_kernel;
-static char *opt_ostree_dir;
+static char *opt_ostree_dir = "/ostree";
static GOptionEntry options[] = {
- { "ostree-dir", 0, 0, G_OPTION_ARG_STRING, &opt_ostree_dir, "Path to OSTree root directory", NULL },
+ { "ostree-dir", 0, 0, G_OPTION_ARG_STRING, &opt_ostree_dir, "Path to OSTree root directory (default: /ostree)", NULL },
{ "no-kernel", 0, 0, G_OPTION_ARG_NONE, &opt_no_kernel, "Don't update kernel related config (initramfs, bootloader)", NULL },
{ NULL }
};
const char *revision = NULL;
__attribute__((unused)) GCancellable *cancellable = NULL;
- if (!opt_ostree_dir)
- opt_ostree_dir = "/ostree";
-
memset (self, 0, sizeof (*self));
context = g_option_context_new ("NAME [REVISION] - Check out revision NAME (or REVISION as NAME)");